package com.bjsxt.quartz;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;



public class TimingTaskSchedule implements ServletContextListener{


  @Override
  public void contextInitialized(ServletContextEvent arg0) {
    try {
      QuartzLoad.run();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

  @Override
  public void contextDestroyed(ServletContextEvent arg0) {
    try {
      QuartzLoad.stop();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}